﻿<frm:Form xmlns:my1="clr-namespace:VAdvantage.Controls"   xmlns:frm="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop"
           x:Class="VAdvantage.Framework.VServer" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
            xmlns:mc1="clr-namespace:System.Windows;assembly=System.Windows"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
           xmlns:dataprimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"
           xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls"
           mc:Ignorable="d"
           d:DesignWidth="500" d:DesignHeight="400" 
           Title="VServer Page"
           MinHeight="400" >


    <Grid x:Name="LayoutRoot" ShowGridLines="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="40"/>
            <ColumnDefinition Width="43*"/>
            <ColumnDefinition Width="72"/>
            <ColumnDefinition Width="86" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <my:VDataGrid Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" x:Name="vdgRequest" VerticalAlignment="Stretch" Grid.ColumnSpan="4" >
            <!--<sdk:DataGrid.Columns>
                
                <sdk:DataGridTemplateColumn Width="Auto" CanUserResize="False">

                    <sdk:DataGridTemplateColumn.HeaderStyle>
                        <Style TargetType="dataprimitives:DataGridColumnHeader">
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate>
                                        <Border Background="#DEDEDE" BorderThickness="1" BorderBrush="#FFC8C8C8">
                                            <CheckBox Name="chkHeader"  HorizontalAlignment="Center" VerticalAlignment="Center" />
                                        </Border>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </sdk:DataGridTemplateColumn.HeaderStyle>

                    <sdk:DataGridTemplateColumn.CellTemplate>
                        <mc1:DataTemplate>
                            <CheckBox   HorizontalAlignment="Center" VerticalAlignment="Center"  ></CheckBox>
                        </mc1:DataTemplate>
                    </sdk:DataGridTemplateColumn.CellTemplate>

                </sdk:DataGridTemplateColumn>

                
                <sdk:DataGridTemplateColumn Width="Auto" Header="Process" CanUserResize="False">
                </sdk:DataGridTemplateColumn>

                
                <sdk:DataGridTemplateColumn Header="Port" Width="Auto" >
                </sdk:DataGridTemplateColumn>

                
                <sdk:DataGridTemplateColumn Header="Status" Width="Auto" >
                </sdk:DataGridTemplateColumn>

                
                <sdk:DataGridTemplateColumn Header="StartedAt" Width="Auto" >
                </sdk:DataGridTemplateColumn>

            </sdk:DataGrid.Columns>-->
        </my:VDataGrid>

        <Grid x:Name="lowerMsgGrid" Height="Auto" Grid.Row="1" Grid.ColumnSpan="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <my:VCheckBox Content="Trace File" Width="Auto" Grid.Row="0"  x:Name="chkTraceFile" IsChecked="True" HorizontalContentAlignment="Left" HorizontalAlignment="Right" />
            <my:VLabel Grid.Row="1" Width="Auto" HorizontalAlignment="Right" x:Name="lblMsg" VerticalAlignment="Top" Content="NOTE: To make any changes, You will have to stop the VServer first" HorizontalContentAlignment="Left" />
        </Grid>
        <my1:VStatusBar Grid.Column="0" Grid.Row="2" x:Name="vStatusBar" Grid.ColumnSpan="4"/>

        <my:VButton  Grid.Column="2" Grid.Row="1" x:Name="btnStart" Height="40" Click="btnStart_Click">
            <StackPanel Orientation="Horizontal" Grid.Column="2" Margin="0,1,0,0" Grid.Row="1" Height="40">
                <Image Name="Start32" Height="40" Width="30" HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Detail32.png" />
                <TextBlock Text="Strat"  HorizontalAlignment="Right"   VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </my:VButton>
        <my:VButton  Grid.Column="3" Grid.Row="1" x:Name="btnStop" Height="40" Click="btnStop_Click">
            <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Stop32"  Height="40" Width="30" HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Stop_32.png"   />
                <TextBlock Text="Strat" HorizontalAlignment="Right" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </my:VButton>
       
    </Grid>
</frm:Form>
